package cn.com.zcode.exam.model;

import cn.com.zcode.core.model.BaseModelSupport;

public class Wrong extends BaseModelSupport{
	private static final long serialVersionUID = 1L;
	private String userId;
	private String questionId;
	private String userAnswer;
	private String corrAnswer;
	private int count;
	private boolean unsure;
	private boolean fixed;

	public Wrong() {
		super();
	}

	public Wrong(Answer answer) {
		this.userId = answer.getUserId();
		this.questionId = answer.getQuestionId();
		this.userAnswer = answer.getUserAnswer();
		this.corrAnswer = answer.getCorrAnswer();
		
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}

	public String getUserAnswer() {
		return userAnswer;
	}

	public void setUserAnswer(String userAnswer) {
		this.userAnswer = userAnswer;
	}

	 

	public String getCorrAnswer() {
		return corrAnswer;
	}

	public void setCorrAnswer(String corrAnswer) {
		this.corrAnswer = corrAnswer;
	}

	public boolean isUnsure() {
		return unsure;
	}

	public void setUnsure(boolean unsure) {
		this.unsure = unsure;
	}

	public boolean isFixed() {
		return fixed;
	}

	public void setFixed(boolean fixed) {
		this.fixed = fixed;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
	public void addCount(){
		++this.count;
	}
	 
}
